<div class="sidebar">
<h2>按目录浏览</h2>
<ul>
<cms type="cate" action="menu" />
<loop>
      <!--#if($cid==$val[cid]){$class="here";}else{$class='';}#-->
      <li><a href="list.php?cid=$val[cid]" class="$class">$val[cname] （$val[total]）</a></li>
</loop>
</ul>
</div>
